package com.our.util;

import java.util.Random;

/**
 * 验证码�?�知短信接口
 * 
 * @ClassName: IndustrySMS
 * @Description: 验证码�?�知短信接口
 *
 */
public class IndustrySMS
{
	private static String operation = "/industrySMS/sendSMS";
	private static String accountSid = Config.ACCOUNT_SID;
	//private static String to = "15927018659";
	//private static String smsContent = "【钱掌柜集团】您的验证码为"+"{"+IndustrySMS.str2+"}"+"，"+"请于{1}分钟内正确输入，如非本人操作，请忽略此短信。";
	private static String str="【钱掌柜集团】您的验证码为";
	private static String str1="{";
	private static String str3="}";
	private static String str4="，";
	private static String str5="请于{1}分钟内正确输入，如非本人操作，请忽略此短信。";
	//private static String param="";
	/**
	 * 验证码�?�知短信
	 */ 
	public static void execute(String to ,String str2){
		String url = Config.BASE_URL + operation;
		String body = "accountSid=" + accountSid +"&to="+to+"&smsContent="+(str+str1+str2+str3+str4+str5)
				+ HttpUtil.createCommonParam();
		//提交请求
		String result = HttpUtil.post(url,body);
		System.out.println("result:" + System.lineSeparator() + result);
	}
}
